-- GENERATED SPELL FOR [Holaaru] --


function spell0_18221(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(12039,pUnit)
pUnit:RegisterEvent('Sorts_18221', 3000, 1)
end

function spell1_18221(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(15498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18221', 2500, 1)
end

function spell2_18221(pUnit, Event) --@Inner Fire,Self--
pUnit:FullCastSpellOnTarget(1006,pUnit)
pUnit:RegisterEvent('Sorts_18221', 608, 1)
end

function Sorts_18221(pUnit, Event)
local choix_sorts_18221 = math.random(0, 2)
if choix_sorts_18221 == 0 then
pUnit:RegisterEvent('spell0_18221', 1, 1)
end
if choix_sorts_18221 == 1 then
pUnit:RegisterEvent('spell1_18221', 1, 1)
end
if choix_sorts_18221 == 2 then
pUnit:RegisterEvent('spell2_18221', 1, 1)
end
end

function mob18221_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18221', math.random(1500, 3000), 1)
end

function mob18221_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18221_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18221_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18221, 1, 'mob18221_Action')
RegisterUnitEvent(18221, 2, 'mob18221_Leave')
RegisterUnitEvent(18221, 3, 'mob18221_Kill')
RegisterUnitEvent(18221, 4, 'mob18221_Die')
